{% extends 'web/workorder/basic.html' %}
{% load static %}
{% load issues %}

{% block workOrderTable %}
    <table class="table">
        <tbody>
        {% for item in all_order_list %}
            <tr style="height: 60px">
                <td class="col-md-1">
                    <a href="{% url 'issues_detail' project_id=request.login_user.project.id order_id=item.id %}">
                        <span class="order-id">{% change_string item.id %}</span>
                    </a>
                </td>
                <td class="col-md-11">
                    <div class="order-header">
                                <span>{{ item.order_type }}工单 ---> <a
                                        href="{% url 'issues_detail' project_id=request.login_user.project.id order_id=item.id %}">
                                    <b>{{ item.order_name }}</b>
                                </a></span>
                    </div>
                    <div class="order-body">
                        <span>{{ item.order_status }}</span>
                        <span><i class="fa fa-user" aria-hidden="true"></i>{{ item.update_user }}</span>
                        <span><i class="fa fa-hand-o-right" aria-hidden="true"></i>{{ item.assign_user }}</span>
                        <span><i class="fa fa-calendar" aria-hidden="true"></i>{{ item.start_time }}</span>
                        <span><i class="fa fa-calendar-o" aria-hidden="true"></i>{{ item.update_time }}</span>
                    </div>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}

{% block page_info_html %}
    <ul class="pagination" style="margin-top: 0;">
        {{ all_order_page_html | safe }}
    </ul>
{% endblock %}